package phoenix.core.helpers.extensions;

import core.ApplicationManager;
import core.helpers.MailHelper;
import phoenix.core.PhoenixManager;

public class MailHelperExt extends MailHelper
{
	// PhoenixManager instance
	protected static PhoenixManager phoenix;

	/**
	 * Initializes LoggerHelperExt
	 * 
	 * @param p_manager ApplicationManager instance
	 * @param p_phoenix PhoenixManager instance
	 */
	public MailHelperExt(ApplicationManager p_manager, PhoenixManager p_phoenix)
	{
		super(p_manager);
		phoenix = p_phoenix;
	}

	public void sendRedmineDailyReport(String p_to, String p_cc, String p_bcc, String p_from, String p_subject, String p_message, String p_attachmentName)
	{
		String p_smtp = phoenix.config().SMTP_HOST;
		String p_smtpPort = phoenix.config().SMTP_PORT;
		String p_username = phoenix.config().SMTP_USER;
		String p_password = phoenix.config().SMTP_PASSWORD;
		String p_attachmentPath = phoenix.config().MAIL_HTML_PATH + p_attachmentName;
		super.send(p_smtp, p_smtpPort, p_username, p_password, p_to, p_cc, p_bcc, p_from, p_subject, p_message, p_attachmentName, p_attachmentPath);
	}
}
